<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="com.flying.dcss.app.SessionName"%>
<%@page import="com.flying.dcss.viewmodel.impl.DCListViewModel"%>
<%@page import="com.flying.dcss.app.CommonHelper"%>
<%
	List<DCListViewModel> models = (List<DCListViewModel>) request
			.getAttribute(SessionName.DcListSession);
	if (models == null)
		return;
%>
<html>
	<head>
		<link rel="stylesheet" href="style/css5.css" />
	</head>
	<body>
		<div class="contentcontainer_3">
			<div class="somewords">
				<span style="margin-left: 50px;">您好，您可以委托他人赞为代理门禁管理工作</span>
			</div>
			<dl class="mobilenumber">
				<dt>
					请选择门禁
				</dt>
				<dd style="float: left">
					<select style="width: 200px; height: 30px">
						<option></option>
						<%
							for (DCListViewModel item : models) {
						%>
						<option value="<%=item.getDcInfo().getId()%>"><%=item.getCity() + "|"%><%=item.getBuilding() + "|"%><%=item.getFloor() + "|"%><%=item.getManager() + "|"%><%=item.getManagerEmpoyeeNum() + "|"%><%=item.getDcInfo().getDescription() + "|"%><%=CommonHelper.showDCState(item.getDcInfo()
						.getDcState())%></option>
						<%
							}
						%>
					</select>
				</dd>

			</dl>
			<dl class="workplace">
				<dt>
					委托信息
				</dt>
				<dd style="float: left">
					<span>被委托人</span>
					<input type="text" id="agentEmail" />
				</dd>
				<dd style="float: left; margin-left: 60px;">
					<span>委托至</span>
					<input type="text" readonly="readonly" onfocus="setday(this)"
						id="deadline" />
				</dd>
				<dd style="float: left">
					<span>委托原因</span>
					<input type="text" id="reason" />
				</dd>
				<dd style="float: left; margin-left: 30px">
					<input type="submit" value="提交" class="btnalt"
						style="width: 100px; height: 28px; margin:0;float: right"
						onclick="setAgent();" />
				</dd>
			</dl>


		</div>
		<script language="javascript" type="text/javascript">
			agentAutoCompl();
			
			//Set Highlight.
			var hl = document.getElementById("high5");
			hl.setAttribute("id", "active2");
		</script>
	</body>
</html>